<ion-header-bar align-title="center" class="bar bar-header bar-light" style='background: url(img/icon/headerline.png); background-size: contain; background-position: bottom; background-repeat: no-repeat;'>
  <a class="button icon-left ion-ios-arrow-left button-clear button-light" ng-click="backGo()"></a>
  <h1 class="title">消息通知</h1>
  <button style="color: #b2b2b2;" class="button button-clear pull-right" ng-click="editMessage()">编辑</button>
</ion-header-bar>

<ion-content>
  <ion-refresher pulling-text="<span class='pulling-text-auto'>{{pulltextchange}}</span>"
                 on-refresh="doRefresh()"
                 on-pulling="pulltext()"
                 spinner="ripple"
                 pulling-icon="ion-ios-refresh-empty">
  </ion-refresher>
  <ion-list show-delete="showDelete">
    <ion-item ng-repeat="message in messages">
      <p>{{message.alert}}</p>
      <p>{{message.sendDate}}</p>
      <ion-delete-button >
        <div class="item-checkbox">
          <label class="checkbox" style="left: 0px;">
            <ion-checkbox ng-checked="all" ng-click="readyToDel($index,message.id,message.ischecked)" style='margin:-16px;border:0px'></ion-checkbox>
          </label>
        </div>
      </ion-delete-button>
    </ion-item>
  </ion-list>
</ion-content>
<div class="bar bar-footer" style="border-top:1px solid deepskyblue;"><button class="button button-clear pull-left" ng-click="selectAll()">全选</button>
<button class="button button-clear pull-right" ng-click="deleteMessage(ids)">删除</button></div>


